<template lang="html">
  <div class="wrapper">
    <ul>
      <li v-for="item in list">
        <router-link :to="{ name: 'ProductionDetail', params: {id: item.id} }">{{item.title}}</router-link>
      </li>
    </ul>
  </div>
</template>

<script>
import Tool from '../../assets/script/tool.js'
const list = [
  { id: 1, src: "src/assets/images/product/1449643778-41533.png@680x680.jpg", href: "", price: 169, discount: 0.47, title: "Skullcandy 入耳耳机", desc: "内置麦克风，防汗、防脱落，高低中频均享。" },
  { id: 2, src: "src/assets/images/product/1457788284-57467.png@480x480.jpg", href: "", price: 199, discount: 0.5, title: "魅族EP-31耳机", desc: "舒适均衡 精致优雅" },
  { id: 3, src: "src/assets/images/product/1465698264-58364.jpg@480x480.jpg", href: "", price: 199, discount: 0.5, title: "ME20入耳式耳机", desc: "享受 不绝于耳" },
  { id: 4, src: "src/assets/images/product/Cgbj0VmRZCuAfRtpAADkzYNWvkY311.png@480x480.jpg", href: "", price: 199, discount: 0.5, title: "魅族路由器 极速版", desc: "天生不凡 快狠稳" },
  { id: 1, src: "src/assets/images/product/1449643778-41533.png@680x680.jpg", href: "", price: 169, discount: 0.47, title: "Skullcandy 入耳耳机", desc: "内置麦克风，防汗、防脱落，高低中频均享。" },
  { id: 2, src: "src/assets/images/product/1457788284-57467.png@480x480.jpg", href: "", price: 199, discount: 0.5, title: "魅族EP-31耳机", desc: "舒适均衡 精致优雅" },
  { id: 3, src: "src/assets/images/product/1465698264-58364.jpg@480x480.jpg", href: "", price: 199, discount: 0.5, title: "ME20入耳式耳机", desc: "享受 不绝于耳" },
  { id: 4, src: "src/assets/images/product/Cgbj0VmRZCuAfRtpAADkzYNWvkY311.png@480x480.jpg", href: "", price: 199, discount: 0.5, title: "魅族路由器 极速版", desc: "天生不凡 快狠稳" },
]
export default {
  data () {
    return {
      list: list
    }
  },
  created () {
    console.log(Tool.getQueryString('type'))
  }
}
</script>

<style lang="scss" scoped>
.wrapper {
  width: 100%;

}
</style>
